Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / Application-Defined Functions
/


MyExit

Handles calls to java.lang.System.exit. This is how you would define your input function if you were to name it MyExit:

Boolean MyExit (JMSessionRef session, 
                     int value);
session
The session to receive the text input.
value
The buffer to hold the input.
function result
A Boolean value. If true, then the current thread is killed. If false, a QUIT Apple event is sent to the current process.
DISCUSSION
When invoking the Java runtime environment using JMOpenSession, you must designate a callback function (called MyExit here) to handle requests to quit. When a Java applet or application calls java.lang.System.exit, the session calls MyExit. Note that instead of passing false back to the session, you can simply dispose of the session and exit from within the MyExit function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997